//
//  UIImage+MSPhotoBrowser.m
//  MSPhotoBrowser
//
//  Created by zzg on 2021/8/30.
//
#import "UIImage+MSPhotoBrowser.h"
#import <AVFoundation/AVFoundation.h>

@implementation UIImage (MSPhotoBrowser)

+ (UIImage *)imageForResourcePath:(NSString *)path ofType:(NSString *)type inBundle:(NSBundle *)bundle {
    return [UIImage imageWithContentsOfFile:[bundle pathForResource:path ofType:type]];
}

+ (UIImage *)clearImageWithSize:(CGSize)size {
    UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale);
    UIImage *blank = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return blank;
}


@end
